<div class="form-inline definewidth m20">
	<?php echo CHtml::link('添加站点',$this->createUrl('site/create'),array('class'=>'btn btn-success'));?>
</div>
<?php
//获取字段语言包
$aAttributeLabels = AdminSite::model()->attributeLabels();
?>
<table class="table table-bordered table-hover definewidth m10">
	<thead>
        <tr>
            <th class="bl0 tc" style="width:60px;"><input type="checkbox" class="btn_all" /> <?php echo $aAttributeLabels['siteid'] ?></th>
            <th><?php echo $aAttributeLabels['name'] ?></th>
            <th><?php echo $aAttributeLabels['dirname'] ?></th>
            <th><?php echo $aAttributeLabels['domain'] ?></th>                    
            <th><?php echo $aAttributeLabels['site_title'] ?></th>                    
            <th style="width:100px;">操作</th>
        </tr>
	</thead>
	<?php foreach ($model as $v){?>
    <tr title="id=<?php echo $v->siteid;?>">
        <td><input type="checkbox" class="ids" name="ids[]" value="<?php echo $v->siteid;?>" /></td>
        <td><?php echo $v->name;?></td>
        <td><?php echo $v->dirname;?></td>
        <td><?php echo $v->domain;?></td>
        <td><?php echo $v->site_title;?>
        </td>
        <td>
        	<?php
        		echo CHtml::link('编辑',$this->createUrl('site/update',array('sid'=>$v->siteid)),array('class'=>'table-operate-a'));
        		echo CHtml::link('删除','javascript:void(0);', array('class'=>'delete table-operate-a' ,'url'=>$this->createUrl('site/delete',array('sid'=>$v->siteid))));
        	?>
        </td>
    </tr>
   	<?php }?>
</table>
<div class="table-bottom-operate">
    <div class="inline pull-left table-operate">
        <?php //echo CHtml::link('删除','javascript:void(0);',array('class'=>'btn btn-primary deleteall','url'=>$this->createUrl('site/deleteall'))); ?>
    </div>
    <div class="inline pull-right page">
        <?php $this->widget('LinkPager',array('pages' => $pages)); ?>
    </div>
	
</div>